package action.productsearch;

import java.util.ArrayList;

import service.SearchService;
import vo.SellerVO;

public class SearchByLocationAction {
	
	private String location, msg;
	private ArrayList<SellerVO> list;
	private SearchService service;
	
	public String getLocation() {return location;}
	public void setLocation(String location) {this.location = location;}
	public String getMsg() {return msg;}
	public void setMsg(String msg) {this.msg = msg;}
	public ArrayList<SellerVO> getList() {return list;}
	public void setList(ArrayList<SellerVO> list) {this.list = list;}
	public SearchService getService() {return service;}
	public void setService(SearchService service) {this.service = service;}
	
	public String execute() {
		list = service.searchByLocation(location);
		return "success";
	}
}